<f:layout name="KML" />

This Template is responsible for creating a table of domain objects.

If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
  Resources:
    Private:
      Templates:
        List.html: keep

Otherwise your changes will be overwritten the next time you save the extension in the extension builder

<f:section name="main">
	<name>50 sommets d&#39;Europe</name>
	<description><![CDATA[]]></description>
	<Style id="bleu">
		<IconStyle>
		  <Icon>
			<href><f:uri.image src="EXT:mountains/Resources/Public/Images/kml/montagne_bleue.png" /></href>
		  </Icon>
		</IconStyle>
	</Style>
	<Style id="jaune">
		<IconStyle>
		  <Icon>
			<href><f:uri.image src="EXT:mountains/Resources/Public/Images/kml/montagne_jaune.png" /></href>
		  </Icon>
		</IconStyle>
	</Style>
	<Style id="point">
		<IconStyle>
		  <Icon>
			<href>http://maps.gstatic.com/mapfiles/ms2/micons/blue-dot.png</href>
		  </Icon>
		</IconStyle>
	</Style>
	<f:for each="{mountains}" as="mountain">
	
		<f:comment>
			<f:debug>{mountain.position.lat}</f:debug>
			<f:debug>{mountain.position}</f:debug>
		
			<f:debug>{mountain}</f:debug>
			<f:debug>{mountain.groupAltitude}</f:debug>
		
			<f:debug>{mountain.country}</f:debug>
			<f:debug>{mountain.country.capitalCity}</f:debug>
		</f:comment>
		
		<Placemark>
			<name>{mountain.name}<f:if condition="{mountain.top}">*</f:if> (<f:for each="{mountain.country}" as="country" iteration="k"><f:if condition="{k.isFirst}">{country.shortNameFr}</f:if></f:for>)</name>
			<Snippet>{mountain.altitude} m <f:for each="{mountain.country}" as="country" iteration="k"><f:if condition="{k.isFirst}">{country.shortNameFr}</f:if></f:for></Snippet>
			<description>{mountain.altitude} m</description>
			<styleUrl><f:if condition="{mountain.done}">
				<f:then>#jaune</f:then>
				<f:else>#bleu</f:else>
			</f:if></styleUrl>
			<Point>
				<coordinates>{mountain.position.lng},{mountain.position.lat},0.000000</coordinates>
			</Point>
		</Placemark>
	</f:for>


</f:section>